package com.blog.service.impl;


import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.blog.dao.BloggerDao;
import com.blog.pojo.Blogger;
import com.blog.service.BloggerService;
@Service("bloggerService")
public class BloggerServiceImpl implements BloggerService{
	
	@Resource
	private BloggerDao bloggerDao;
	
	@Override
	public Blogger find() {
		return bloggerDao.find();
	}

	@Override
	public Blogger getByUserName(String userName) {
		return bloggerDao.getByUserName(userName);
	}

	@Override
	public Integer update(Blogger blogger) {
		return bloggerDao.update(blogger);
	}

	@Override
	public Integer add(Blogger blogger) {
		return bloggerDao.add(blogger);
	}

	@Override
	public List<Blogger> list(Map<String, Object> map) {
		return bloggerDao.list(map);
	}

	@Override
	public Integer delete(Integer id) {
		return bloggerDao.delete(id);
	}

	@Override
	public Blogger findById(Integer id) {
		return bloggerDao.findById(id);
	}

}
